/**
 * 
 */
package com.java.test.config;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



/**
 * @author Administrator
 *
 */
//@Configuration
//@EnableAutoConfiguration
public class MyLoadRocketConfig {

//	@Value("${apache.rocketmq.namesrvAddr}")
//	private String nameServer;
//	@Value("${eureka.instance.hostname}")
//	private String host;
//	@Value("${spring.application.name}")
//	private String name;
//	@Value("${server.port}")
//	private String port;
//	// 消费者列表
//	@Autowired(required = false)
//	private List<DmgMQConsumer> consumerHandlers;
//	
//	@Bean
//	RocketmqTemplate rocketmqTemplate() {
//		// 生产者
//		DmgMQProducer masterMqProducer = new DefaultProducer(nameServer, Groups.GMSERVICE);
//		// 服务唯一名称
//		String instanceName = name + ":" + host + ":" + port;
//		return new RocketmqTemplate(nameServer, masterMqProducer, consumerHandlers, instanceName);
//	}
}
